package com.frank.activedatabus.utils;

import ohos.eventhandler.EventRunner;

/**
 * @author : frank
 * @date : 2021/3/17 9:26
 */
public class ThreadUtils {

    public static boolean isMainThread() {
        return EventRunner.getMainEventRunner() == EventRunner.current();
    }
}
